# New ports collection makefile for:	cdcollect
# Date created:				09 April 2008
# Whom:					Alexander Logvinov <ports@logvinov.com>
#
# $FreeBSD: ports/misc/cdcollect/Makefile,v 1.8 2010/05/31 01:59:49 ade Exp $
#

PORTNAME=	cdcollect
PORTVERSION=	0.6.0
PORTREVISION=	6
CATEGORIES=	misc gnome
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}_source

MAINTAINER=	avl@FreeBSD.org
COMMENT=	A simple CD catalog for GNOME

BUILD_DEPENDS=	sqlite3>=3.0:${PORTSDIR}/databases/sqlite3
RUN_DEPENDS:=	${BUILD_DEPENDS}

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gnomeprefix gnomehack intlhack libgnome gnomesharp20
GCONF_SCHEMAS=	cdcollect.schemas
USE_GETTEXT=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

post-extract:
	${REINPLACE_CMD} -e 's,SqliteClient,Sqlite,' \
	    ${WRKSRC}/src/Makefile.in \
	    ${WRKSRC}/src/CDIcon.cs \
	    ${WRKSRC}/src/CDItem.cs \
	    ${WRKSRC}/src/CompPluginWindow.cs \
	    ${WRKSRC}/src/DBsql.cs

.include <bsd.port.mk>
